
package com.example.bsxk.service.impl;

import com.example.bsxk.dao.UserDao;
import com.example.bsxk.entity.User;
import com.example.bsxk.mapper.UserMapper;
import com.example.bsxk.service.KZUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class KZUserServiceImpl implements KZUserService {
    @Autowired
    UserMapper userMapper;
    @Autowired
    UserDao dao;
    @Override
    public void insert(User user) {
        userMapper.insertSelective(user);
    }
    public User findByName(String name){
        return dao.findByName(name);
    }
}
